package com.reebake.ideal.security.config;

import com.reebake.ideal.security.authentication.AuthenticationController;
import com.reebake.ideal.security.properties.ServerSecurityProperties;
import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;


@Configuration
@EnableConfigurationProperties({ServerSecurityProperties.class})
@Import({AuthenticationManagerConfig.class
        , BasicServerSecurityConfig.class
        , ServerAuthenticationFilterConfig.class
        , AuthenticationServerBasicConfig.class
        , AuthenticationServerProviderConfig.class
        , AuthenticationController.class})
@AutoConfigureOrder(0)// 要在jwt验证过滤器之前
public class ServerAuthenticationAutoConfiguration {

}
